package com.ruoyi.project.bi.service.model;


import com.baomidou.mybatisplus.extension.service.IService;
import com.rsbi.ext.engine.view.exception.ExtConfigException;
import com.ruoyi.project.bi.domain.common.Result;
import com.ruoyi.project.bi.domain.model.DataSource;
import org.springframework.stereotype.Service;

import java.sql.Connection;
import java.util.List;
import java.util.Map;


public interface DataSourceService extends IService<DataSource> {


	public List<DataSource> listDataSource();

	public void insertDataSource(DataSource ds);

	public void updateDataSource(DataSource ds);

	public void deleteDataSource(String dsid);

	public DataSource getDataSource(String dsid);

	public Result testJNDI(DataSource ds);

	public Connection getJDBC(DataSource ds) throws Exception;

	public Connection getJndi(DataSource ds) throws Exception;

	public Result testDataSource(DataSource ds);

	public List<Map<String, Object>> listTables(String dsid, String searchTname) throws Exception;

}
